package com.woniu.darryringmall.front.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.math.BigDecimal;
import java.util.List;
import java.util.Map;


@Data
public class ViewGoods {
    private int id;//商品规格值id
    private int gid ;//商品id
    private String name;//商品名称
    private String cname;//商品类别名
    private String type;//商品类别名分类
    private String goodsNo;//商品编号
    private int volume;//销量
    private int stock;//库存
    private String description;//商品描述
    private String image;//商品图片
    private String isNew;//最新
    private String isHot;//最热
    private String specValues;//商品规格值
    private BigDecimal price;//商品价格
    private String status;//商品状态
    @TableField(exist = false)
    private BigDecimal minPrice;//商品最低价格
    @TableField(exist = false)
    private BigDecimal maxPrice;//商品最高价格
    @TableField(exist = false)
    private List<Images> imagesList;//商品的其他图片
    @TableField(exist = false)
    private List <Integer>size;//商品尺寸
    @TableField(exist = false)
    private List<BigDecimal> weight;//钻石重量
    @TableField(exist = false)
    private List<String> specs;//材质表
    @TableField(exist = false)
    private List<String> purities;//颜色/纯度表
    @TableField(exist = false)
    private String defaultSpec;//默认材质表
    @TableField(exist = false)
    private String defaultPurity;//默认颜色/纯度表
//    @TableField(exist = false)
//    private Map<String,List<String>> goodsSpecMap;
}
